.consultationPage {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;
  padding-bottom: 200px;
}

.stepBar {
  display: flex;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.stepBar .stepItem {
  flex: 1;
  position: relative;
  height: 40px;
}

.stepBar .stepItem:first-child .stepContent {
  margin-right: -1px;
}

.stepBar .stepItem:first-child .stepContent::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 0;
  width: 0;
  height: 0;
  border-left: 10px solid #4CAF50;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  z-index: 3;
}

.stepBar .stepItem:last-child .stepContent {
  margin-left: -1px;
}

.stepBar .stepItem:last-child .stepContent::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 0;
  width: 0;
  height: 0;
  border-right: 10px solid #E0E0E0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  z-index: 1;
}

.stepBar .stepItem:not(:first-child):not(:last-child) .stepContent {
  margin-left: -1px;
  margin-right: -1px;
}

.stepBar .stepItem:not(:first-child):not(:last-child) .stepContent::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 0;
  width: 0;
  height: 0;
  border-right: 10px solid #E0E0E0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  z-index: 1;
}

.stepBar .stepItem:not(:first-child):not(:last-child) .stepContent::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 0;
  width: 0;
  height: 0;
  border-left: 10px solid #E0E0E0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  z-index: 3;
}

.stepBar .stepItem.current .stepContent {
  background: #4CAF50;
  color: #fff;
  z-index: 2;
}

.stepBar .stepItem.current .stepContent::after {
  border-left-color: #4CAF50;
}

.stepBar .stepItem.completed .stepContent {
  background: #4CAF50;
  color: #fff;
  z-index: 2;
}

.stepBar .stepItem.completed .stepContent::after {
  border-left-color: #4CAF50;
}

.stepBar .stepItem .stepContent {
  position: relative;
  height: 100%;
  background: #E0E0E0;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  transition: all 0.3s ease;
  z-index: 1;
}

.stepBar .stepItem .stepTitle {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.stepContainer {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.stepContent {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.chatArea {
  margin-bottom: 20px;
}

.chatArea .assistantMessage {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
}

.chatArea .assistantMessage .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
}

.chatArea .assistantMessage .avatar .avatarPlaceholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #e6f7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.chatArea .assistantMessage .messageBubble {
  background: #f5f5f5;
  padding: 12px;
  border-radius: 12px;
  max-width: 80%;
}

.chatArea .assistantMessage .messageBubble .assistantName {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.chatArea .assistantMessage .messageBubble .messageText {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

.chatArea .userMessage {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.chatArea .userMessage .userBubble {
  background: #1890ff;
  color: #fff;
  padding: 12px;
  border-radius: 12px;
  max-width: 80%;
}

.historyPrompt {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}

.historyPrompt .historyItem {
  background: #f0f0f0;
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 8px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
}

.historyPrompt .historyItem:hover {
  background: #e6f7ff;
}

.inputArea {
  margin-top: 16px;
}

.inputArea .textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  transition: border-color 0.3s ease;
}

.inputArea .textarea:focus {
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.inputArea .textarea::placeholder {
  color: #bfbfbf;
}

.inputArea .charCount {
  text-align: right;
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

.skipArea {
  margin-top: 16px;
  text-align: center;
}

.patientArchives .privacyNotice {
  display: flex;
  align-items: center;
  padding: 12px;
  background: #fff7e6;
  border: 1px solid #ffd591;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 12px;
  color: #d46b08;
}

.patientArchives .privacyNotice span:first-child {
  margin-right: 8px;
  font-size: 16px;
}

.patientArchives .createArchive {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 60px;
  border: 2px dashed #52c41a;
  border-radius: 8px;
  background: #f6ffed;
  cursor: pointer;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.patientArchives .createArchive:hover {
  background: #d9f7be;
}

.patientArchives .createArchive span {
  margin: 0 4px;
  color: #52c41a;
  font-size: 14px;
}

.patientArchives .patientCard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.patientArchives .patientCard:hover {
  border-color: #1890ff;
  background: #f0f8ff;
}

.patientArchives .patientCard.selected {
  border-color: #52c41a;
  background: #f6ffed;
}

.patientArchives .patientCard .patientInfo .name {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
}

.patientArchives .patientCard .patientInfo .details {
  font-size: 14px;
  color: #666;
}

.patientForm {
  padding: 20px;
  background: #fff;
}

.patientForm .formHeader {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.patientForm .formActions {
  margin-top: 20px;
  text-align: center;
}

.userInfo {
  text-align: right;
  margin-bottom: 16px;
  font-size: 14px;
  color: #666;
}

.serviceDisclaimer {
  background: #f0f0f0;
  padding: 12px;
  border-radius: 6px;
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 16px;
}

.departmentMatch {
  background: #f6ffed;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  text-align: center;
}

.departmentMatch .matchText {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.departmentMatch .departmentName {
  font-size: 18px;
  font-weight: bold;
  color: #52c41a;
  margin-bottom: 12px;
}

.packageSelection {
  margin-bottom: 16px;
}

.packageSelection .packageItem {
  position: relative;
  padding: 16px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.packageSelection .packageItem:hover {
  border-color: #1890ff;
}

.packageSelection .packageItem.selected {
  border-color: #52c41a;
  background: #f6ffed;
}

.packageSelection .packageItem .recommendedTag {
  position: absolute;
  top: -8px;
  left: 16px;
  background: #ff6b35;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.packageSelection .packageItem .packageInfo .packageName {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
}

.packageSelection .packageItem .packageInfo .packageDesc {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.packageSelection .packageItem .packageInfo .packagePrice .currentPrice {
  font-size: 18px;
  font-weight: bold;
  color: #ff4d4f;
  margin-right: 8px;
}

.packageSelection .packageItem .packageInfo .packagePrice .originalPrice {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}

.multiDoctorTip {
  background: #f6ffed;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  color: #52c41a;
  margin-bottom: 16px;
  text-align: center;
}

.doctorsList .doctorCard {
  display: flex;
  align-items: center;
  padding: 16px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.doctorsList .doctorCard:hover {
  border-color: #1890ff;
}

.doctorsList .doctorCard.selected {
  border-color: #52c41a;
  background: #f6ffed;
}

.doctorsList .doctorCard .doctorAvatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e6f7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-right: 16px;
  flex-shrink: 0;
}

.doctorsList .doctorCard .doctorInfo {
  flex: 1;
}

.doctorsList .doctorCard .doctorInfo .doctorName {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
}

.doctorsList .doctorCard .doctorInfo .doctorTags {
  margin-bottom: 4px;
}

.doctorsList .doctorCard .doctorInfo .doctorTags .tag {
  display: inline-block;
  background: #e6f7ff;
  color: #1890ff;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  margin-right: 8px;
}

.doctorsList .doctorCard .doctorInfo .hospitalInfo {
  font-size: 14px;
  color: #666;
}

.doctorsList .doctorCard .doctorInfo .hospitalInfo .hospitalTags {
  margin-left: 8px;
}

.doctorsList .doctorCard .doctorInfo .hospitalInfo .hospitalTags .tag {
  background: #f0f0f0;
  color: #666;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  margin-right: 4px;
}

.bottomActions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  padding: 16px;
  z-index: 1000;
}

.bottomActions .inputContainer {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 12px;
}

.bottomActions .inputContainer .textarea {
  flex: 1;
  min-height: 60px;
  padding: 8px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  transition: border-color 0.3s ease;
  background: #fafafa;
  margin-top: 10px;
}

.bottomActions .inputContainer .textarea:focus {
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
  background: #fff;
}

.bottomActions .inputContainer .textarea::placeholder {
  color: #bfbfbf;
}

.bottomActions .inputContainer .submitButton {
  height: 30px;
  padding: 0 24px;
  white-space: nowrap;
  border-radius: 15px;
  background: #52c41a;
  border-color: #52c41a;
}

.bottomActions .inputContainer .submitButton:hover {
  background: #73d13d;
  border-color: #73d13d;
}

.bottomActions .inputContainer .submitButton:disabled {
  background: #d9d9d9;
  border-color: #d9d9d9;
}

.bottomActions .uploadSection {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.bottomActions .uploadSection .uploadButton {
  flex: 1;
  height: 50px;
}

.bottomActions .uploadSection .skipButton {
  flex: 1;
  height: 50px;
}

.bottomActions .stepActions {
  display: flex;
  justify-content: center;
}

.bottomActions .stepActions .nextButton, .bottomActions .stepActions .submitButton {
  width: 100%;
  height: 50px;
}

.bottomActions .uploadBottomSection {
  background: #fff;
  padding: 16px;
  border-top: 1px solid #f0f0f0;
  height: 200px;
  overflow-y: auto;
}

.bottomActions .uploadBottomSection .uploadTitle {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
}

.bottomActions .uploadBottomSection .uploadDesc {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

.bottomActions .uploadBottomSection .uploadArea {
  margin-bottom: 8px;
  min-height: 40px;
}

.bottomActions .uploadBottomSection .uploadArea .uploadBox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 60px;
  border: 2px dashed #d9d9d9;
  border-radius: 6px;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 auto 8px;
}

.bottomActions .uploadBottomSection .uploadArea .uploadBox:hover {
  border-color: #1890ff;
  background: #f0f8ff;
}

.bottomActions .uploadBottomSection .uploadArea .uploadBox .uploadIcon {
  font-size: 24px;
  color: #d9d9d9;
  margin-bottom: 2px;
}

.bottomActions .uploadBottomSection .uploadArea .uploadBox .uploadText {
  font-size: 12px;
  color: #d9d9d9;
}

.bottomActions .uploadBottomSection .uploadArea .uploadedGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.bottomActions .uploadBottomSection .uploadArea .uploadedGrid .imageItem {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 4px;
  overflow: hidden;
}

.bottomActions .uploadBottomSection .uploadArea .uploadedGrid .imageItem img {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.bottomActions .uploadBottomSection .uploadArea .uploadedGrid .imageItem .deleteBtn {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 12px;
  height: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
}

.bottomActions .uploadBottomSection .uploadArea .uploadedGrid .imageItem .deleteBtn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.bottomActions .uploadBottomSection .guideLink {
  text-align: center;
  color: #1890ff;
  font-size: 10px;
  margin-bottom: 8px;
  cursor: pointer;
}

.bottomActions .uploadBottomSection .guideLink:hover {
  color: #40a9ff;
}

.bottomActions .uploadBottomSection .uploadActions {
  display: flex;
  gap: 8px;
}

.bottomActions .uploadBottomSection .uploadActions .skipButton {
  flex: 1;
  height: 32px;
  font-size: 12px;
}

.bottomActions .uploadBottomSection .uploadActions .confirmButton {
  flex: 2;
  height: 32px;
  font-size: 12px;
  background: #52c41a;
  border-color: #52c41a;
}

.bottomActions .uploadBottomSection .uploadActions .confirmButton:hover {
  background: #73d13d;
  border-color: #73d13d;
}

.bottomActions .uploadActions {
  display: flex;
  justify-content: center;
}

.bottomActions .uploadActions .confirmButton {
  width: 100%;
  height: 50px;
  background: #52c41a;
  border-color: #52c41a;
}

.bottomActions .uploadActions .confirmButton:hover {
  background: #73d13d;
  border-color: #73d13d;
}

.bottomActions .charCount {
  text-align: right;
  font-size: 12px;
  color: #999;
}

.uploadPage {
  padding: 20px;
  background: #fff;
  min-height: calc(100vh - 120px);
}

.uploadPage .uploadHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.uploadPage .uploadHeader .uploadTitle {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.uploadPage .uploadHeader .skipLink {
  color: #1890ff;
  font-size: 16px;
  cursor: pointer;
}

.uploadPage .uploadHeader .skipLink:hover {
  color: #40a9ff;
}

.uploadPage .uploadDesc {
  font-size: 16px;
  color: #333;
  margin-bottom: 24px;
}

.uploadPage .uploadArea {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

.uploadPage .uploadArea .uploadBox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border: 2px dashed #d9d9d9;
  border-radius: 8px;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.uploadPage .uploadArea .uploadBox:hover {
  border-color: #1890ff;
  background: #f0f8ff;
}

.uploadPage .uploadArea .uploadBox .uploadIcon {
  font-size: 24px;
  color: #d9d9d9;
  margin-bottom: 4px;
}

.uploadPage .uploadArea .uploadBox .uploadText {
  font-size: 12px;
  color: #d9d9d9;
  text-align: center;
}

.uploadPage .uploadArea .uploadedGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.uploadPage .uploadArea .uploadedGrid .imageItem {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.uploadPage .uploadArea .uploadedGrid .imageItem img {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.uploadPage .uploadArea .uploadedGrid .imageItem .deleteBtn {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
}

.uploadPage .uploadArea .uploadedGrid .imageItem .deleteBtn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.uploadPage .guideLink {
  text-align: center;
  color: #1890ff;
  font-size: 14px;
  margin-top: 24px;
  cursor: pointer;
}

.uploadPage .guideLink:hover {
  color: #40a9ff;
}

@media (max-width: 375px) {
  .stepBar {
    padding: 8px 12px;
  }
  .stepBar .stepItem .stepTitle {
    font-size: 11px;
  }
  .stepContainer {
    padding: 12px;
  }
  .stepContent {
    padding: 12px;
  }
}
